Daniel Boles [Sun, 27 Aug 2017 14:34:38 +0000 (15:34 +0100)]
testgtk: Remove an unused variable
Mario Blättermann [Sun, 27 Aug 2017 08:28:45 +0000 (08:28 +0000)]
Update German translation
Andika Triwidada [Sun, 27 Aug 2017 01:43:41 +0000 (01:43 +0000)]
Update Indonesian translation
Matthias Clasen [Sat, 26 Aug 2017 23:15:36 +0000 (19:15 -0400)]
Remove an unused field
Drag contexts are objects, so there is no need to carry a
manual refcount around.
Matthias Clasen [Sat, 26 Aug 2017 22:01:17 +0000 (18:01 -0400)]
x11: Fix initial drag cursors
Under X, we were not setting the right drag cursor initially,
because at current_action == action == 0, initially. Fix this
by explicitly using the right cursor when grabbing.
Anders Jonsson [Sat, 26 Aug 2017 22:20:51 +0000 (22:20 +0000)]
Update Swedish translation
Milo Casagrande [Sat, 26 Aug 2017 15:40:24 +0000 (15:40 +0000)]
Update Italian translation
Matthias Clasen [Sat, 26 Aug 2017 14:25:56 +0000 (10:25 -0400)]
emoji: Use the right gettext domain
Otherwise, strings are not translated.
https://bugzilla.gnome.org/show_bug.cgi?id=786841
Piotr Drąg [Sat, 26 Aug 2017 14:11:51 +0000 (16:11 +0200)]
Update Polish translation
Fabio Tomat [Sat, 26 Aug 2017 11:23:42 +0000 (11:23 +0000)]
Update Friulian translation
Baurzhan Muftakhidinov [Sat, 26 Aug 2017 06:26:39 +0000 (06:26 +0000)]
Update Kazakh translation
Rafael Fontenelle [Sat, 26 Aug 2017 02:17:43 +0000 (02:17 +0000)]
Update Brazilian Portuguese translation
Julius Härtl [Thu, 10 Aug 2017 20:30:36 +0000 (22:30 +0200)]
gtkplacessidebar: implement libcloudproviders support
Add integration of the libcloudproviders DBus API to the
GtkPlacesSidebar by showing name and sync status of the cloud providers.
The exported menu is rendered as a GtkPopover.
The sidebar will be updated if the list of cloudproviders changes e.g.
by adding or removing an account. If any cloud provider changes detailed
information like sync status only the individual sidebar row gets
updated.
Co-authored-by: Carlos Soriano <csoriano@gnome.org>
https://bugzilla.gnome.org/show_bug.cgi?id=786123
Daniel Boles [Fri, 25 Aug 2017 20:00:51 +0000 (21:00 +0100)]
ComboBox: Use iter before popdown() may invalidate
Bad actors, such as our very own FileChooserButton, may connect to the
:popped-up property and alter the model as the menu becomes in/visible.
We were getting an iter to the model while popped-up, then doing
popdown(), then using the iter, which may have just been invalidated by
the errant notify::popped-up handler. If so, we quickly crash fatally.
This is clearly bonkers, but until such patterns are removed, we have to
work around them. So, set_active() from the clicked item while it is
known to be valid, by moving the call to set_active() before popdown().
While here, change set_active_iter(iter) to set_active_internal(path) to
avoid pointlessly going through the iter to get the path we already have
https://bugzilla.gnome.org/show_bug.cgi?id=729651
Daniel Boles [Thu, 24 Aug 2017 20:05:00 +0000 (21:05 +0100)]
Expander: Also hide child GdkWindow when collapsed
Just adding/removing to/from the BoxGadget is not sufficient; that
leaves the GdkWindow hanging around, taking input, changing the cursor,
and all sorts of other nefarious shenanigans.
Resolve by ensuring the child’s GdkWindow is unmapped if collapsed.
Note: the reflexive solution is just to set_visible(child, expanded),
but it is best to avoid messing with the child’s :visible property.
https://bugzilla.gnome.org/show_bug.cgi?id=776937
Daniel Boles [Thu, 24 Aug 2017 11:46:47 +0000 (12:46 +0100)]
ComboBox: Clarify documentation of get_active_iter
https://bugzilla.gnome.org/show_bug.cgi?id=618160
Daniel Boles [Wed, 23 Aug 2017 20:44:10 +0000 (21:44 +0100)]
Popover: Include window shadows in overshoot calcs
.update_position() enforces that non-Wayland platforms must position a
Popover within its parent Window. We use the allocation of the Window
to translate the position and check for overshoot on each of its sides.
Calling Widget.get_allocation() of a CSD Window includes its shadows.
But shadows were not excluded from the area in which we can position.
Thus, Popovers could get positioned in the shadow of CSD windows, where,
at least on X11, no input is received. Therefore, positioning a Popover
over a shadow meant its child widgets within that area became unusable.
Fix by calling Window.get_shadow() and including it in the overshoot on
each side. This adjusts for how the allocation includes shadows, making
overshoots with and without shadows the same. Thus, we avoid considering
shadows as viable for positioning, favouring a side where input works.
https://bugzilla.gnome.org/show_bug.cgi?id=786209
Daniel Boles [Sun, 13 Aug 2017 19:15:36 +0000 (20:15 +0100)]
testpopover: Use HeaderBar to get CSD decorations
This helps test whether the Popover positioning gets messed up by the
presence of CSD shadow or other accessories around the content area.
https://bugzilla.gnome.org/show_bug.cgi?id=786209
Cheng-Chia Tseng [Thu, 24 Aug 2017 16:39:23 +0000 (16:39 +0000)]
Update Chinese (Taiwan) translation
Anders Jonsson [Thu, 24 Aug 2017 09:44:28 +0000 (09:44 +0000)]
Update Swedish translation
Anders Jonsson [Thu, 24 Aug 2017 09:37:42 +0000 (09:37 +0000)]
Update Swedish translation
Piotr Drąg [Thu, 24 Aug 2017 00:45:09 +0000 (02:45 +0200)]
Update POTFILES.in and POTFILES.skip
Daniel Boles [Sat, 19 Aug 2017 16:18:35 +0000 (17:18 +0100)]
SidebarRow: Add Unmount tooltip to eject_button
It was reported that the lack of a tooltip made its purpose unclear.
This can be solved by just copying PlacesViewRow’s eject_button tooltip.
https://bugzilla.gnome.org/show_bug.cgi?id=766909
Tom Schoonjans [Mon, 31 Jul 2017 20:28:42 +0000 (21:28 +0100)]
GtkFileChooserNativeQuartz: restore parent focus after closing dialog
Tested for both modal and non-modal dialogs
https://bugzilla.gnome.org/show_bug.cgi?id=785306
Tom Schoonjans [Mon, 31 Jul 2017 20:26:47 +0000 (21:26 +0100)]
GtkFileChooserNativeQuartz: improve support for file filters
Instead of using conditional compilation, use respondsToSelector to
check at runtime for setAccessoryViewDisclosed.
https://bugzilla.gnome.org/show_bug.cgi?id=785306
Tom Schoonjans [Sun, 23 Jul 2017 08:37:26 +0000 (09:37 +0100)]
GtkFileChooserNativeQuartz: add support for Mountain Lion and Mavericks
https://bugzilla.gnome.org/show_bug.cgi?id=784723 introduced support for
native file chooser dialogs on macOS, but due to the use of generics in
the patch, there will be compilation errors on pre-Xcode 7 platforms,
such as Mountain Lion and Mavericks.
I strongly recommend to revert this patch when the oldest supported
macOS release is bumped to Yosemite (10.10).
https://bugzilla.gnome.org/show_bug.cgi?id=785306
Lionel Landwerlin [Fri, 18 Aug 2017 22:57:56 +0000 (23:57 +0100)]
gdk: wayland: always set buffer scale on size update
We're only updating this when we have an EGL window. This means we
have the wrong scaling factor when using Vulkan.
https://bugzilla.gnome.org/show_bug.cgi?id=786492
Fabio Tomat [Wed, 23 Aug 2017 12:55:53 +0000 (12:55 +0000)]
Update Friulian translation
Milo Casagrande [Wed, 23 Aug 2017 07:12:14 +0000 (07:12 +0000)]
Update Italian translation
Milo Casagrande [Tue, 22 Aug 2017 16:41:00 +0000 (16:41 +0000)]
Update Italian translation
Daniel Boles [Tue, 22 Aug 2017 13:14:53 +0000 (14:14 +0100)]
getting_started: Sync filenames & section headings
The order of Examples 3 and 4 was swapped, so the headings updated
themselves, but the filenames were left reflecting the old order.
https://bugzilla.gnome.org/show_bug.cgi?id=786553
Matthias Clasen [Tue, 22 Aug 2017 12:33:11 +0000 (08:33 -0400)]
3.22.19
Matthias Clasen [Sat, 19 Aug 2017 18:05:48 +0000 (14:05 -0400)]
Handle emoji data change in emoji chooser
Update the settings schema to follow the change in Emoji data,
and make the emoji chooser code handle the new format.
Matthias Clasen [Sat, 19 Aug 2017 18:05:16 +0000 (14:05 -0400)]
Add shortnames to emoji data
The json file is from
https://github.com/emojione/emojione/tree/master/extras/alpha-codes
It is under the MIT license.
Matthias Clasen [Tue, 22 Aug 2017 10:41:31 +0000 (06:41 -0400)]
Don't consume too many key releases
The Emoji input support in GtkIMContextSimple was
unintentionally consuming too many key release
events. Fix this.
https://bugzilla.gnome.org/show_bug.cgi?id=786594
Daniel Mustieles [Mon, 21 Aug 2017 11:33:27 +0000 (11:33 +0000)]
Update Spanish translation
Pawan Chitrakar [Sun, 20 Aug 2017 22:44:56 +0000 (22:44 +0000)]
Update Nepali translation
Mario Blättermann [Sun, 20 Aug 2017 14:40:07 +0000 (14:40 +0000)]
Update German translation
Christian Kirbach [Sun, 20 Aug 2017 14:33:49 +0000 (14:33 +0000)]
Update German translation
Pawan Chitrakar [Sun, 20 Aug 2017 09:42:28 +0000 (09:42 +0000)]
Update Nepali translation
Baurzhan Muftakhidinov [Sat, 19 Aug 2017 17:33:57 +0000 (17:33 +0000)]
Update Kazakh translation
Alexandre Franke [Sat, 19 Aug 2017 14:44:33 +0000 (14:44 +0000)]
Update French translation
Alexandre Franke [Sat, 19 Aug 2017 14:41:23 +0000 (14:41 +0000)]
Update French translation
Mario Blättermann [Sat, 19 Aug 2017 11:46:22 +0000 (11:46 +0000)]
Update German translation
gogo [Fri, 18 Aug 2017 20:38:20 +0000 (20:38 +0000)]
Update Croatian translation
gogo [Fri, 18 Aug 2017 20:36:41 +0000 (20:36 +0000)]
Update Croatian translation
Carlos Garnacho [Fri, 18 Aug 2017 17:16:19 +0000 (19:16 +0200)]
gtkbutton: Avoid keyboard grabs
Seems to be there for the sole purpose of ensuring the button
shall receive the key release on keyboard-triggered activation.
For the cases where this makes sense (eg. comboboxes, menubuttons,
...) gtk+ already does ensure the menu is popup after key release.
This makes the grab pretty useless, and there's many other cases
where it doesn't make sense (eg. button being activated
programmatically from an event handler in another widget).
Fixes button activation unintendedly triggering shortcut inhibition
on wayland.
https://bugzilla.gnome.org/show_bug.cgi?id=786480
Rui Matos [Fri, 18 Aug 2017 10:01:54 +0000 (12:01 +0200)]
gdkwindow: Avoid re-setting the opaque region if it doesn't change
This avoids, at least, needless chatter with the compositor and the X
server in X11's case.
https://bugzilla.gnome.org/show_bug.cgi?id=786469
Dušan Kazik [Fri, 18 Aug 2017 16:07:04 +0000 (16:07 +0000)]
Update Slovak translation
Marek Cernocky [Fri, 18 Aug 2017 08:56:19 +0000 (10:56 +0200)]
Updated Czech translation
Chun-wei Fan [Tue, 8 Aug 2017 14:19:45 +0000 (22:19 +0800)]
GDK-Win32: Fix AeroSnap on HiDPI
Commit
1d0fad3 revealed that there were some assumptions made that were
actually to compensate for the bug fixed by that commit, so we need to
remove those assumptions as they would result in AerSnap to not work
properly on HiDPI screens.
Also re-do how we set the x and y positions of our GdkWindow, so that we
are more consistent across the board when we go between a GDK window
coordinate and a Windows API window cooredinate.
This would also simplify the code a bit.
https://bugzilla.gnome.org/show_bug.cgi?id=785999
Carlos Garnacho [Thu, 17 Aug 2017 12:07:12 +0000 (14:07 +0200)]
gdk/x11: Extract GdkDeviceTool tool ID from "Wacom Serial IDs" property
This property contains 5 integers, of which the last 2 respectively
contain the tool serial number and tool ID. We were only extracting the
first so far, but GdkDeviceTool also has API getters for the latter,
which remained 0.
https://bugzilla.gnome.org/show_bug.cgi?id=786400
Fran Dieguez [Wed, 16 Aug 2017 22:46:55 +0000 (22:46 +0000)]
Update Galician translation
Daniel Boles [Tue, 15 Aug 2017 18:29:22 +0000 (19:29 +0100)]
GdkDisplay: Call the correct push|pop_error_trap()
It is wrong to assume all Displays are of the same class as the default.
https://bugzilla.gnome.org/show_bug.cgi?id=784016
Daniel Boles [Tue, 15 Aug 2017 14:15:08 +0000 (15:15 +0100)]
ScrolledWindow: Bin unreachable ternary branches
We already checked that the child is not NULL above.
Coverity CID
1454191
Daniel Boles [Tue, 15 Aug 2017 01:11:19 +0000 (02:11 +0100)]
Widget: Fix outdated comments about tooltips
They are not usually yellow anymore, the previous advice about how to
style them was for pre-3.20 versions, and the immediate replacement (CSS
class .tooltip) does not seem ready for primetime.
https://bugzilla.gnome.org/show_bug.cgi?id=784421
Chun-wei Fan [Tue, 15 Aug 2017 02:43:01 +0000 (10:43 +0800)]
gtk/gtkemojichooser.c: Don't use g_autoptr()
We can't use g_autoptr() on non-GCC-style compilers.
https://bugzilla.gnome.org/show_bug.cgi?id=773299
Aurimas Černius [Tue, 15 Aug 2017 13:48:49 +0000 (16:48 +0300)]
Updated Lithuanian translation
Matthias Clasen [Tue, 15 Aug 2017 10:40:05 +0000 (06:40 -0400)]
Remove an erroneous unref
This was leftover by accident.
Matthias Clasen [Sun, 13 Aug 2017 19:16:11 +0000 (15:16 -0400)]
Redo emoji data slightly
No longer store variation sequences explicitly. Instead, put a 0
in the sequence where the modifiers will be inserted. This is more
compact, and it allows us to put variations directly into the
recent section. Update the type of the recent-emoji setting to
match these changes.
Matthias Clasen [Sun, 13 Aug 2017 13:27:37 +0000 (09:27 -0400)]
Don't update headings in an idle
It is not necessary since flow box invalidation is
all synchronous currently. If that ever changes,
this code will need adjustment.
Daniel Boles [Mon, 14 Aug 2017 22:10:59 +0000 (23:10 +0100)]
testpopover: Sync initial vals of controls & props
The ComboBoxes were initially empty, rather than reflecting the initial
values of the properties. The CheckButtons were only correct by chance.
Fix this by setting the initial values on the widgets and binding them
to the properties using SYNC_CREATE, so the two are always synced up.
https://bugzilla.gnome.org/show_bug.cgi?id=786209
Hannes Müller [Mon, 14 Aug 2017 17:17:17 +0000 (19:17 +0200)]
configure: Add missing quotes to unbreak an AS_IF
Without quoting, the comma in AC_MSG_ERROR was wrongly interpreted as
separating the if and else paths.
https://bugzilla.gnome.org/show_bug.cgi?id=786287
Daniel Mustieles [Mon, 14 Aug 2017 16:04:33 +0000 (16:04 +0000)]
Update Spanish translation
Fran Dieguez [Sun, 13 Aug 2017 22:20:29 +0000 (22:20 +0000)]
Update Galician translation
Muhammet Kara [Sun, 13 Aug 2017 16:34:57 +0000 (16:34 +0000)]
Update Turkish translation
Matthias Clasen [Sun, 13 Aug 2017 11:49:57 +0000 (07:49 -0400)]
emoji: Fix a leak
We were leaking the list of recently used Emoji here.
Pointed out by Timm Bädert.
Matthias Clasen [Sun, 13 Aug 2017 11:49:13 +0000 (07:49 -0400)]
emoji: Start search on the first character
There is no need to wait for a longer prefix here.
We already display all the content anyway, it will
only get less.
Matthias Clasen [Sat, 12 Aug 2017 00:13:03 +0000 (20:13 -0400)]
Drop a redundant helper
We already had a function that does exactly what
is needed here.
Matthias Clasen [Fri, 11 Aug 2017 23:52:29 +0000 (19:52 -0400)]
Remove an unused field
Nothing uses bubble_window, so it can go.
Rafael Fontenelle [Sat, 12 Aug 2017 22:55:14 +0000 (22:55 +0000)]
Update Brazilian Portuguese translation
Rafael Fontenelle [Sat, 12 Aug 2017 22:41:32 +0000 (22:41 +0000)]
Update Brazilian Portuguese translation
Daniel Boles [Sat, 12 Aug 2017 20:07:22 +0000 (21:07 +0100)]
InfoBar: Fix wrong/uninit var use in code example
https://bugzilla.gnome.org/show_bug.cgi?id=786144
Мирослав Николић [Sat, 12 Aug 2017 18:03:28 +0000 (20:03 +0200)]
Updated Serbian translation
Мирослав Николић [Sat, 12 Aug 2017 18:02:20 +0000 (20:02 +0200)]
Updated Serbian translation
Daniel Boles [Sat, 12 Aug 2017 14:49:07 +0000 (15:49 +0100)]
Adwaita: Sync CSS files with current SASS
A recent commit for emoji also updated seemingly unrelated parts of the
generated CSS files, presumably due to other things that changed in
master. The CSS files should be kept in sync with their SASS sources.
Daniel Boles [Sat, 12 Aug 2017 13:09:09 +0000 (14:09 +0100)]
LevelBar: Avoid unnecessarily copying allocation
Just use the original allocation, instead of copying it and passing that
Andika Triwidada [Sat, 12 Aug 2017 13:15:04 +0000 (13:15 +0000)]
Update Indonesian translation
Andika Triwidada [Sat, 12 Aug 2017 13:13:04 +0000 (13:13 +0000)]
Update Indonesian translation
Daniel Boles [Sat, 12 Aug 2017 13:06:09 +0000 (14:06 +0100)]
convert-emoji: Add missing braces
Daniel Boles [Sat, 12 Aug 2017 13:00:40 +0000 (14:00 +0100)]
convert-emoji: Don’t pointlessly do rest of loop
skip can never become FALSE again, so break as soon as it becomes TRUE.
Piotr Drąg [Fri, 11 Aug 2017 20:27:40 +0000 (22:27 +0200)]
Update Polish translation
Piotr Drąg [Fri, 11 Aug 2017 20:18:50 +0000 (22:18 +0200)]
emojichooser: Add context to the Objects category string
To disambiguate it from Objects in the Inspector.
Piotr Drąg [Fri, 11 Aug 2017 19:55:24 +0000 (21:55 +0200)]
Update POTFILES.skip
Matthias Clasen [Fri, 11 Aug 2017 16:25:35 +0000 (12:25 -0400)]
widget-factory: Add a use of show-emoji-icon
This also adds a testcase for nested popovers that was
missing in widget-factory so far.
Matthias Clasen [Fri, 11 Aug 2017 16:05:24 +0000 (12:05 -0400)]
entry: Add support for an Emoji chooser
Add an "Insert Emoji" item to the context menu in entries.
We also add a show-emoji-icon property, which when set to
TRUE, will add an icon that can be clicked to bring up
the Emoji chooser.
Matthias Clasen [Fri, 11 Aug 2017 16:03:54 +0000 (12:03 -0400)]
Fix a problem with focus handling in modal popovers
When the popover is dismissed, we return the focus to
where it came from. However, by using gtk_widget_grab_focus,
we were messing up the selection if that widget happens to
be an entry. Special-case GtkEntry and use
gtk_entry_grab_focus_without_selecting to avoid this issue.
Matthias Clasen [Fri, 11 Aug 2017 15:54:15 +0000 (11:54 -0400)]
Add an Emoji chooser widget
Add a popover that shows color Emoji, with a search entry.
The recently-used Emoji are stored in a GSetting.
Matthias Clasen [Fri, 11 Aug 2017 15:47:02 +0000 (11:47 -0400)]
Add Emoji data
The json file is imported from the (MIT-licensed) emoji.json[0] node
module, which generates it from the emoji list published by the
Unicode Consortium.
This commit also adds a little tool to convert the data into
a compact GVariant, and the result of that conversion, which is
added to libgtk as a resource. The following commits will make use
of it.
[0] https://github.com/amio/emoji.json
Piotr Drąg [Thu, 10 Aug 2017 22:09:45 +0000 (00:09 +0200)]
Update Polish translation
Fran Dieguez [Thu, 10 Aug 2017 13:55:33 +0000 (13:55 +0000)]
Update Galician translation
Fran Dieguez [Thu, 10 Aug 2017 09:52:33 +0000 (09:52 +0000)]
Update Galician translation
Fabio Tomat [Wed, 9 Aug 2017 12:52:10 +0000 (12:52 +0000)]
Update Friulian translation
John Ralls [Tue, 8 Aug 2017 20:15:46 +0000 (23:15 +0300)]
Duplicate the TIC strings before NULLing the GObject data.
NULLing the data strings in GObject frees and invalidates the pointers
returned by g_object_get_data so we need our own copy of the values.
Daniel Boles [Tue, 8 Aug 2017 17:55:30 +0000 (18:55 +0100)]
Revert "levelbar: Don't underallocate block widgets"
This reverts commit
78b4885fe8850e132d8bb06df8ab90ac6c2033e0.
That commit causes a block always to be shown at the min side, even when
the value is 0, in which case, no fill should be shown.
https://bugzilla.gnome.org/show_bug.cgi?id=783649
Chun-wei Fan [Tue, 8 Aug 2017 09:13:34 +0000 (17:13 +0800)]
gtk/gtkfilechoosernativewin32.c: Declare variables at top-of-block
Since GTK+-3.22.x is not advertised to use C99, make sure that the build
works on pre-C99 compilers such as pre-2013 Visual Studio.
Matthias Clasen [Mon, 24 Jul 2017 17:24:33 +0000 (13:24 -0400)]
Avoid the use of g_autofree
We can't use this in code that may be built on win32,
so lets just not use it at all.
Matthias Clasen [Mon, 7 Aug 2017 19:43:44 +0000 (15:43 -0400)]
3.22.18
Daniel Boles [Mon, 7 Aug 2017 22:56:49 +0000 (23:56 +0100)]
Layout: Fix documentation on getting the GdkWindow
Members are not public like they used to be, so accessors must be used.
Daniel Boles [Mon, 7 Aug 2017 18:38:12 +0000 (19:38 +0100)]
Revert "Widget: Remove obsolete hack-arounds for HandleBox"
This reverts commit
12805a4fbfa66b10efbe48c03595b0d5b7608d0e.
I must have been looking at the wrong tree because HandleBox is only
deprecated in GTK+ 3, not removed.